Grunt Cookbook by Botha Jurie-Jan
Author:Botha, Jurie-Jan
Language: eng
Format: epub, azw3
Publisher: Packt Publishing
Published: 2015-06-29T04:00:00+00:00
How to do it...
The following steps take us through creating a sample code base, creating a few tests to run against the code base, and configuring Grunt to run them for us.
We'll start by installing the package that contains the mocha-test plugin by following the instructions provided in the Installing a plugin recipe in Chapter 1, Getting Started with Grunt.
Then, we can create a JavaScript source file in our project directory that contains and exports a function that we'd like to have tested. Let's call it main.js and add the following content to it:module.exports.square = function (x) { return x * x; }
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12954)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10361)
Hello! Python by Anthony Briggs(10193)
The Mikado Method by Ola Ellnestam Daniel Brolund(10106)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(10041)
Dependency Injection in .NET by Mark Seemann(9580)
Hit Refresh by Satya Nadella(9015)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8586)
The Kubernetes Operator Framework Book by Michael Dame(8365)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8167)
Robo-Advisor with Python by Aki Ranin(8119)
Practical Computer Architecture with Python and ARM by Alan Clements(8101)
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(8078)
Svelte with Test-Driven Development by Daniel Irvine(7968)
Building Low Latency Applications with C++ by Sourav Ghosh(7967)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7966)
Grails in Action by Glen Smith Peter Ledbrook(7940)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7898)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7893)